﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BK_CLIENT
{
    public partial class ClientWebcam : Form
    {
        public TCPCam.Client ClientWC;

        public ClientWebcam()
        {
            InitializeComponent();
            ClientWC = new TCPCam.Client(pictureBox1);
            ClientWC.CameraFPS = 30;
            ClientWC.CameraOutputSize = pictureBox1.Size;
            CLIENT_FORM.check_wc = 1;
        }

        private void ViewWebcam_FormClosing(object sender, FormClosingEventArgs e)
        {
            ClientWC.StopCamera();
            ClientWC.Disconnect();
            CLIENT_FORM.check_wc = 0;
        }
    }
}
